package com.hsjk.szwj.module.train.dal.mysql.course;

import com.hsjk.szwj.framework.mybatis.core.mapper.BaseMapperX;
import com.hsjk.szwj.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.hsjk.szwj.module.train.dal.dataobject.course.CourseTagDO;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/04 01:15
 **/
@Mapper
public interface ICourseTagMapper extends BaseMapperX<CourseTagDO> {
    default List<CourseTagDO> getCourseTagList() {
        return selectList(new LambdaQueryWrapperX<CourseTagDO>()
                .orderByDesc(CourseTagDO::getSortNo));
    }
}
